﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System;

namespace Titan.UI
{
    public interface IModule 
    {

    }

    public class Module : MonoBehaviour, IModule
    {
        #region Public Attributes

        #endregion

        #region Private Attributes

        #endregion

        #region Unity Messages
        //	void Awake()
        //	{
        //
        //	}
        // void OnEnable()
        // {
        //
        // }
        //
        //	void Start() 
        //	{
        //	
        //	}
        //	
        //	void Update() 
        //	{
        //	
        //	}
        //
        // void OnDisable()
        // {
        //
        // }
        //
        //	void OnDestroy()
        //	{
        //
        //	}

        #endregion

        #region Public Methods
        protected T GetComponentInParam<T>(UnityEngine.Object obj)
        {
            GameObject go = obj as GameObject;
            if (go == null)
            {
                Debug.LogError("Can't Get GameObject Param! Please check your GameObject attach in trigger");
                return default(T);
            }

            return go.GetComponent<T>();
        }
        #endregion

        #region Override Methods

        #endregion

        #region Private Methods

        #endregion

        #region Inner

        #endregion
    }
}
